package com.cgx.entity.User;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.util.Date;

/**
 * @author chenguanxin
 * @date 2021-05-25 22:27
 */
@Data
@Document(collection = "friend_relation")
public class FriendRelation {
    @Id
    @Field("id")
    private String id;
    @Field("relation_id")
    private String relationId;
    @Field("main_user_id")
    private String mainUserId;
    @Field("friend_user_id")
    private String friendUserId;
    @Field("session_id")
    private String sessionId;
    @Field("is_agree")
    private Integer isAgree;
    @Field("create_by")
    private String createBy;
    @Field("create_time")
    private Date createTime;
    @Field("update_by")
    private String updateBy;
    @Field("update_time")
    private Date updateTime;
    @Field("is_delete")
    private Integer isDelete;
}
